.container {
    display: flex;
    height: 100vh;
    background-color: #fff;
    max-width: 100%;
    margin: 0 auto;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;  
    overflow-y: auto;
    width: 100%;
}

/* 顶部导航样式 */
.top-nav {
    padding: 1rem 110px;
    padding-right: 5rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.search-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    /* width: 40%; */
    min-width: 400px;
    max-width: 600px;
    height: 2.7rem;
    display: flex
;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 1.25rem;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background-color: #f0f0f0;
}

.search-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 10px;
    font-size: 18px;
    color: #333;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-box i {
    position: absolute;
    right: 20px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.nav-items {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    box-sizing: content-box;

    
}

.nav-items::-webkit-scrollbar {
    display: none;
    
}

.nav-item1 {
    font-size: 19px;
    color: #666;
    cursor: pointer;
    padding: 5px 15px;
    /* max-width: 70px; */
    text-align: center;
    box-sizing: content-box;
}

.nav-item1.active {
    color: #333;
    position: relative;
    background-color: rgba(0, 0, 0, 0.03);;
    font-weight: 600;
    border-radius: 20px;
   
}

.nav-item1.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
}

/* .hwe{
    display: grid;
    justify-items: center
} */
/* 瀑布流布局样式 */
.content-grid {
  column-count: 5;
  column-gap: 40px;
  padding: 0  110px;
  /* width: 80%; */
}

.card {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    border: 1px solid #00000014;
    
}



.card-image {
    width: 100%;
    /* height: 100%; */
}

.card-image img {
    width: 100%;
    min-height: 200px;
}

.card-content {
    padding: 12px;
}

.card-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.username {
    font-size: 12px;
    color: #666;
}

.like-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
}

